package com.boot.stu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.boot.stu.entity.UserEntity;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * @author cwt
 */
@Mapper
@Repository
public interface UserDao extends BaseMapper<UserEntity> {
    /**
     * 查询分页
     * @param page 分页信息
     * @return IPage<UserEntity> 返回数据
     * */
    IPage<UserEntity> selectPage(Page page, @Param("userName") String delFlag);
    /**
     * 查询分页
     * @param id id
     * @return UserEntity 返回数据
     * */
    UserEntity findById(Integer id);
}
